console.log($event)
const queryManage = this.pageObj.getApiWidgetByAliasName('queryManage')?.widgetObj
const publicParams = this.getApiPage().getVariables().find(v => v.name === 'panel_type')
const eventTitle = this.getApiPage().getVariables().find(v => v.name === 'event_search')?.value;
const whetherProcess = this.getApiPage().getVariables().find(v => v.name === 'whether_process')?.value
const { title, uniqueKey, show, projectCode } = $event;

if(show && !uniqueKey?.startsWith('all') ) {
    const params = {
        pageNum: 1,
        pageSize: 10,
        projectCode,
        eventTitle,
        whetherProcess
    }
    if (publicParams?.value === '1') {
        params.occurrencePlace = title
    } else if (publicParams?.value === '2') {
        params.eventType = title
    } else if (publicParams?.value === '3') {
        params.eventGrade = title
    } else {
        params.occurrencePlace = title
    }
    const tree =  this.widgetObj.tree
    queryManage.queryList(params, $event).then((result) => {
        console.log(result)
        if(result.success) {
            tree.pannelRerender(
                uniqueKey,
                {
                    dataSource: result.result,
                    total: result.totalWarning,
                    page: {...this.widgetObj._option.panel_config.page, current: 1}
                }
            )
        }
    })
}